Only simple SELECT queries are allowed in VIEWS. (Error 3766)

This error occurs when trying to create a view from SQL DDL. This error occurs when trying to include parameters or sub-select statements as part of the view definition.